package cn.bonoon.kernel.support.models;

import java.util.List;


/**
 * 用于combobox
 * @author jackson
 *
 */
public class Node extends CommonItem {
	
	private List<Node> children;
	private Boolean checked;
	private String parentId;
	private String iconCls;
	
	public Node(Object id, String text) {
		super(id.toString(), text);
	}
	
	public Node(Object id, String text, String parentId) {
		super(id.toString(), text);
		this.parentId = parentId;
	}
	
	public Node(Object id, String text, Long parentId) {
		super(id.toString(), text);
		if(null != parentId && parentId > 0){
			this.parentId = parentId.toString();
		}
	}
	
	public List<Node> getChildren() {
		return children;
	}
	
	public void setChildren(List<Node> children) {
		this.children = children;
	}

	public Boolean getChecked() {
		return checked;
	}

	public void setChecked(Boolean checked) {
		this.checked = checked;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getIconCls() {
		return iconCls;
	}

	public void setIconCls(String iconCls) {
		this.iconCls = iconCls;
	}
}
